from pathlib import Path

file = Path('a.txt')
content = file.read_text()
print(content)

print(content.replace('Albert','Jack'))

for line in content.splitlines():
    print(line)

msg='Albert'

if msg in content:
    print('yes')
else:
    print('no')